import {isEmpty, resetState} from '@/utils/index';
import {mapState, mapGetters, mapMutations, mapActions} from 'vuex';

/*
 提供一些语法糖
 */
var sugar = {
    data (){
        return {

        };
    },
    methods: {
        /*
        回调语法糖
         */
        callbackSugar(callback,param){
            if (callback!=undefined && typeof callback == 'function'){
                callback(param);
            }
        },
    },
}
export default sugar;
